import { CommitOptions, DispatchOptions, Store as VuexStore, Module } from 'vuex'

import { mutations, Mutations } from './mutations'
import { actions, Actions } from './actions'
import { state, AppState } from './state';
import { RootState } from '@/store';



export type AppStore<S = AppState> = VuexStore<S>

export const store: Module<AppState, RootState> = {
    state,
    mutations,
    actions,
    namespaced: true
}
